<template>
	<view class="phone-video-page">
		<web-view :src="url"></web-view>
	</view>
</template>

<script lang="ts" setup>
	// oppo vivo huawei xiaomi
	import {ref} from 'vue'
	import {onLoad, onShow} from "@dcloudio/uni-app"

	const url = ref("");
	onLoad(({type}) => {
		const videos = [
			{
				value:'oppo',
				path: 'http://app.3985.site/html/bindVideo/oppo.html'
			},
			{
				value:'vivo',
				path: 'http://app.3985.site/html/bindVideo/vivo.html'
			},
			{
				value:'huawei',
				path: 'https://ghzsj.sh985.com/html/managMobile/video/page/honor.html'
			},
			{
				value:'xiaomi',
				path: 'https://ghzsj.sh985.com/html/managMobile/video/page/xiaomi.html'
			}
		];
		const { path } = videos.find(item => item.value === type);
		url.value = path;
	})
	
</script>

<style>
</style>